package com.slipper.system.api.employee.service;

import com.slipper.common.annotation.FeignRequestMapping;
import com.slipper.common.bo.Result;
import com.slipper.system.api.employee.bo.EmployeeBO;
import com.slipper.common.feign.ServiceClient;

import java.util.List;

import org.springframework.web.bind.annotation.RequestBody;

/**
 * 员工信息表
 *
 * @date 2020-03-26 14:59:54
 */
@ServiceClient
public interface IEmployeeSv {
    @FeignRequestMapping("/employee/queryBy")
    Result<EmployeeBO> queryBy(@RequestBody EmployeeBO bo);

    @FeignRequestMapping("/employee/queryPage")
    Result<List<EmployeeBO>> queryPage(@RequestBody EmployeeBO bo);

    @FeignRequestMapping("/employee/queryByLogin")
    Result<EmployeeBO> queryByLogin(@RequestBody EmployeeBO bo);

    @FeignRequestMapping("/employee/saveUserRole")
    Result<?> saveUserRole(@RequestBody EmployeeBO bo);

    @FeignRequestMapping("/employee/updatePassword")
    Result<?> updatePassword(@RequestBody EmployeeBO bo);

    @FeignRequestMapping("/employee/save")
    Result<?> save(@RequestBody EmployeeBO bo);

    @FeignRequestMapping("/employee/delete")
    Result<?> delete(@RequestBody EmployeeBO bo);

    @FeignRequestMapping("/employee/queryList")
    Result<List<EmployeeBO>> queryList(@RequestBody EmployeeBO bo);

    @FeignRequestMapping("/employee/queryListWithOrg")
    Result<List<EmployeeBO>> queryListWithOrg(@RequestBody EmployeeBO bo);

    @FeignRequestMapping("/employee/queryByIds")
    Result<List<EmployeeBO>> queryByIds(@RequestBody EmployeeBO bo);

    @FeignRequestMapping("/employee/updateOrganization")
    Result<?> updateOrganization(@RequestBody EmployeeBO employee);
}
